import { LoadMoreStatus } from './LoadMoreStatus'

export class LoadMoreOption {
  state: LoadMoreStatus = LoadMoreStatus.Inactive

  getTip(): string {
    if (this.state == LoadMoreStatus.Inactive) {
      return '上拉加载'
    } else if (this.state == LoadMoreStatus.Drag) {
      return '上拉加载'
    } else if (this.state == LoadMoreStatus.OverDrag) {
      return '松开加载更多'
    } else if (this.state == LoadMoreStatus.Loading) {
      return '加载中...'
    } else {
      return '加载完成'
    }
  }
}